﻿using cludg.Domain.Content;
using FluentNHibernate.Mapping;

namespace cludg.Repository.NHibernate.Config.Content
{
	public class TagMap : ClassMap<Tag>
	{
		public TagMap()
		{
			Table("Tags");
			Cache.ReadWrite();
			Id(x => x.Id).Length(50)
				.GeneratedBy.Custom<Utils.IdentifierGenerator>()
				.Default("");
			Map(x => x.Name).Length(50);
			Map(x => x.ContentId).Length(50);
		}
	}
}
